﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;



namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {

        DSCBO1Lib.StockMst mst = new DSCBO1Lib.StockMst();
        public Form1()
        {
            InitializeComponent();
            mst.Received += new DSCBO1Lib._IDibEvents_ReceivedEventHandler(mst_Received);
            mst.SetInputValue(0, "A000660");
            mst.Request();
            short returnVal = 1;// = mst.BlockRequest();
            if (returnVal == 0)
            {
                label1.Text = mst.GetHeaderValue(1) + ":" + mst.GetHeaderValue(11);
            }
        }

        void mst_Received()
        {
            //throw new NotImplementedException();
            label1.Text = mst.GetHeaderValue(1) + ":" + mst.GetHeaderValue(11);
        }
    }
}
